package com.xinmiao.test8.adaptere2;

import android.app.Activity;
import android.content.Context;
import android.widget.ImageView;

import com.jaeger.ninegridimageview.NineGridImageViewAdapter;
import com.previewlibrary.GPreviewBuilder;
import com.xinmiao.test8.imagemanager.ImageLoaderOptions;
import com.xinmiao.test8.imagemanager.ImageManager;

import java.util.List;

/**
 * Created by ${王俊强} on 2017/12/2.
 */

public class NineImageAdapter extends NineGridImageViewAdapter<String> {
    @Override
    protected void onDisplayImage(Context context, ImageView imageView, String s) {
        ImageManager.getInstance().showImage(new ImageLoaderOptions.Builder(imageView, s)
                .setSkipMemoryCache(true)
                .build());
    }

    @Override
    protected void onItemImageClick(Context context, ImageView imageView, int index, List<String> list) {
        super.onItemImageClick(context, imageView, index, list);




    }

    @Override
    protected ImageView generateImageView(Context context) {
        return super.generateImageView(context);
    }

}
